package com.mitaotao._1_语法._3_分支._3_if判断;

import java.util.Scanner;

public class _06_判断是奇数or偶数 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int num;
        System.out.println("请输入需要判断的数字：");
        num = scanner.nextInt();

        if (num%2==0){
            System.out.println("该数字是偶数哦~");
        }
        else {
            System.out.println("该数字是奇数哦~");
        }
        scanner.close();
    }
}
